package cn.powertime.evaluation.service.impl;

import cn.powertime.evaluation.entity.DbqAnswer;
import cn.powertime.evaluation.mapper.DbqAnswerMapper;
import cn.powertime.evaluation.service.DbqAnswerService;
import cn.powertime.evaluation.vo.AppAnswerVo;
import cn.powertime.evaluation.vo.DbqAnswerVo;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 答案表 服务实现类
 * </p>
 *
 * @author liqi
 * @since 2019-09-23
 */
@Service
public class DbqAnswerServiceImpl extends ServiceImpl<DbqAnswerMapper, DbqAnswer> implements DbqAnswerService {

    @Autowired
    private  DbqAnswerMapper dbqAnswerMapper;

    @Override
    public List<DbqAnswerVo> answerQuery(Long uid) {
        return dbqAnswerMapper.answerList(uid);
    }

    @Override
    public List<DbqAnswerVo> answerUserList(AppAnswerVo vo) {
        return dbqAnswerMapper.answerUserList( vo);
    }

    @Override
    public boolean ownUpdateById(DbqAnswer menu) {
        return updateById(menu);
    }

    @Override
    public boolean ownSave(DbqAnswer menu) {
        return save(menu);
    }
}
